package com.xuzhijie.pms.service;

import com.xuzhijie.pms.common.Result;
import com.xuzhijie.pms.entity.Administrator;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xuzhijie.pms.entity.dto.AdministratorDto;
import com.xuzhijie.pms.entity.vo.AdministratorVo;

import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.Date;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 许志杰
 * @since 2024-02-05
 */
public interface IAdministratorService extends IService<Administrator> {

    Result login(AdministratorDto dto);

    Result findPage(Integer page, Integer size, String name, String phone, String status, Date startTime, Date endTime);

    Result editAdmin(AdministratorVo vo);

    Result deleteAdmin(String[] ids);

    Result createAdmin(String name, String phone, String password, String id,String roleId );

    Result getAdminById(String id);

    Result changePassword(Map<String, Object> request);
}
